package com.caiheng.api.entity.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 物业接待回复对象 estate_chat_apply
 *
 * @author ruoyi
 * @date 2022-08-16
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_chat_apply")
public class EstateChatApply implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 回复的哪个chat
     */
    private Integer chatId;

    /**
     * 内容
     */
    private String content;

    /**
     * 发起id
     */
    private Integer userId;

    /**
     * 回复的是哪条的id
     */
    private String parentId;

    /**
     * 回复时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private List<EstateChatImg> chatImgs;

    @TableField(exist = false)
    private String timeStr;

    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String faceUrl;

}
